package heima_bixiangdong.test.review1;

/**
 * @DESCRIPTION:    线程任务对象【银行并发存钱】
 * @USER: shg
 * @DATE: 2022/11/26 13:30
 */
public class Consumer implements Runnable {

    private final Bank bank = new Bank();

    @Override
    public void run() {
        for (int i = 0; i < 3; i++) {
            bank.add(100);
        }
    }
}
